﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CommunityCredit.Components
{
    /// <summary>
    /// Represents a task.
    /// </summary>
    public class Task
    {
        #region Properties and Fields

        /// <summary>
        /// The description of the task.
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// The URL of the task.
        /// </summary>
        public string URL { get; set; }

        /// <summary>
        /// The point category of the task.
        /// </summary>
        public PointCategory Category { get; set; }

        #endregion

        #region Constructors

        /// <summary>
        /// Public constructor.
        /// </summary>
        /// <param name="description">The description of the task.</param>
        /// <param name="url">The URL of the task.</param>
        /// <param name="category">The point category of the task.</param>
        public Task(string description, string url, PointCategory category)
        {
            this.Description = description;
            this.URL = url;
            this.Category = category;
        }

        #endregion
    }
}
